package com.cosmocoder.monopoly.domain;

import java.util.ArrayList;
import java.util.List;

public class Theme {
	long id;
	String name;
	List<BoardSpace> spaces;

	public List<BoardSpace> getSpaces() {
		if(spaces == null) spaces = new ArrayList<BoardSpace>(DEFAULT_SPACES_CAPACITY);
		return spaces;
	}

	public void setSpaces(List<BoardSpace> spaces) {
		this.spaces = spaces;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
	
	private static final int DEFAULT_SPACES_CAPACITY = 64;
}
